import java.util.Scanner;
public class Test_0_1 {
    public static void main(String[] args) {
        String s1="abc"+"def";//1
        String s2=new String(s1);//2
        if(s1.equals(s2))//3
            System.out.println(".equals succeeded");//4
        if(s1==s2)//5
            System.out.println("==succeeded");
    }
}

class Solution {
    public int countSegments(String s) {
        if(s.length() == 0)
        {
            return 0;
        }
        else {String[] ret = s.split(" ");
            int n = ret.length;
            return n;}
    }
}


